// 获取当前账号信息
const { miniProgram } = wx.getAccountInfoSync()
// 获取小程序版本
const { envVersion } = miniProgram

let env = {
  baseURL: "https://gmall-prod.atguigu.cn/mall-api"
}
if (envVersion == "develop") {
  env.baseURL = "https://gmall-prod.atguigu.cn/mall-api"
}
else if (envVersion == "trial") {
  env.baseURL = "https://gmall-prod.atguigu.cn/mall-api"
}
else if (envVersion == "release") {
  env.baseURL = "https://gmall-prod.atguigu.cn/mall-api"
}

export { env }